package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberGrowthLog;
import com.jic.member.request.MemberGrowthLogRequest;
import com.jic.member.response.MemberGrowthLogResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 成长值流水表
 * @author : 
 * @email : 
 * @since : 2020-04-15 07:30:56
 * @version : v1.0.0
 */
@Mapper
public interface  MememberGrowthLogMapper {

    long insert(MememberGrowthLog mememberGrowthLog);

    long delete(Long id);

    long update(MememberGrowthLog mememberGrowthLog);

    MememberGrowthLog queryByPrimaryKey(Long id);

    List<MememberGrowthLog> query(MememberGrowthLog mememberGrowthLog);

    List<MememberGrowthLog> queryCurrentDayRecord(MemberGrowthLogRequest mememberGrowthLog);

    List<MemberGrowthLogResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberGrowthLog") MemberGrowthLogRequest mememberGrowthLog);

    long queryPageCount(@Param("mememberGrowthLog") MemberGrowthLogRequest mememberGrowthLog);

    Long queryDaySumByMemId(@Param("memberId") Long memberId,@Param("addOrReduce") Integer addOrReduce , @Param("obtainMode") String obtainMode);
}